using System;
using Core;
using Sirenix.OdinInspector;
using UnityEngine;

namespace g_gongjianta
{
    [CreateAssetMenu(menuName = "Mini/g_gongjianta/Conf/TblMonster")]
    public class TblMonster : AbstractSOTable<int, TblMonster.Conf>
    {
        [Serializable]
        public class Conf : ITableConf<int>
        {
            public int Index => Id;

            [HorizontalGroup("row0")]
            public int Id;

            [HorizontalGroup("row0")]
            public string Name;

            [HorizontalGroup("row0")]
            public Sprite Icon;

            [HorizontalGroup("row1")]
            public int Attack;

            [HorizontalGroup("row1")]
            public int Defense;

            [HorizontalGroup("row1")]
            public float Speed;

            [HorizontalGroup("row1")]
            public int HealthPoints;

            [HorizontalGroup("row2")]
            public float AttackRange;

            [HorizontalGroup("row2")]
            public Vector2 Size;

            [HorizontalGroup("row2")]
            public Vector2 Offset;

            public void Awake() { }
        }
    }
}